const express = require('express');
const router = express.Router();
const { authenticateToken } = require('../middleware/auth');
const { saveForm, getFormDetail } = require('../controllers/formsController');

// 保存表单（需要登录）
router.post('/', authenticateToken, saveForm);

// 获取表单详情
router.get('/:formId', getFormDetail);

module.exports = router;


